package com.ruoyi.mes.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备维护信息对象 tb_equipment_maintenance
 * 
 * @author ruoyi
 * @date 2025-01-09
 */
public class EquipmentMaintenance extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 维护唯一标识 */
    private Long maintenanceId;

    /** 设备ID，外键关联设备表 */
    @Excel(name = "设备ID，外键关联设备表")
    private Long equipmentId;

    /** 维护日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "维护日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date maintenanceDate;

    /** 维护类型 */
    @Excel(name = "维护类型")
    private String maintenanceType;

    /** 维护内容 */
    @Excel(name = "维护内容")
    private String maintenanceContent;

    /** 维护人员ID，外键关联员工表 */
    @Excel(name = "维护人员ID，外键关联员工表")
    private Long maintenancePersonId;

    public void setMaintenanceId(Long maintenanceId) 
    {
        this.maintenanceId = maintenanceId;
    }

    public Long getMaintenanceId() 
    {
        return maintenanceId;
    }
    public void setEquipmentId(Long equipmentId) 
    {
        this.equipmentId = equipmentId;
    }

    public Long getEquipmentId() 
    {
        return equipmentId;
    }
    public void setMaintenanceDate(Date maintenanceDate) 
    {
        this.maintenanceDate = maintenanceDate;
    }

    public Date getMaintenanceDate() 
    {
        return maintenanceDate;
    }
    public void setMaintenanceType(String maintenanceType) 
    {
        this.maintenanceType = maintenanceType;
    }

    public String getMaintenanceType() 
    {
        return maintenanceType;
    }
    public void setMaintenanceContent(String maintenanceContent) 
    {
        this.maintenanceContent = maintenanceContent;
    }

    public String getMaintenanceContent() 
    {
        return maintenanceContent;
    }
    public void setMaintenancePersonId(Long maintenancePersonId) 
    {
        this.maintenancePersonId = maintenancePersonId;
    }

    public Long getMaintenancePersonId() 
    {
        return maintenancePersonId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("maintenanceId", getMaintenanceId())
            .append("equipmentId", getEquipmentId())
            .append("maintenanceDate", getMaintenanceDate())
            .append("maintenanceType", getMaintenanceType())
            .append("maintenanceContent", getMaintenanceContent())
            .append("maintenancePersonId", getMaintenancePersonId())
            .toString();
    }
}
